package com.tanhua.model.soul;

import lombok.Data;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

@Data
public class ProblemVo implements Serializable {
    private String id;
    private String question;  //问题
    private List<ChoicesVo> options = Collections.emptyList(); //选项列表

    public static ProblemVo init(Problem problem){
        ProblemVo problemVo =new ProblemVo();
        problemVo.setId(problem.getId().toString());
        problemVo.setQuestion(problem.getQuestion());
        return problemVo;
    }
}
